package com.zhangdi.demo.text;

import java.util.ArrayList;
import java.util.List;
import java.util.StringJoiner;

/**
 * @author zhangdi
 * @version 1.0
 * @date 2023.9.22
 */
public class StringJoinerTest {
    public static void main(String[] args) {
        List<Long> flowIds = new ArrayList<>();
        flowIds.add(1L);
//        flowIds.add(5L);

        StringJoiner sj = new StringJoiner(",");
        for (Long flowId : flowIds) {
            System.out.println(flowId.toString());
            sj.add(flowId +"");
        }
        System.out.println(sj.toString());

    }
}
